﻿using System;
using System.Collections.Generic;

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace MVCBootstrap.MongoDB {

	public class TextChunk {
		public ObjectId Id { get; set; }
		[BsonElement(TextChunkFieldNames.Namespace)]
		public String Namespace { get; set; }
		[BsonElement(TextChunkFieldNames.Texts)]
		public List<Text> Texts { get; set; }
	}

	internal static class TextChunkFieldNames {
		public const String Namespace = "ns";
		public const String Texts = "texts";
	}
}